1bashThis demonstrates using the lsof command to list open files and their associated processes.lsofexternal toolslsoffile and process inspection
2bashThis demonstrates using lsof to list processes occupying TCP port 4000.lsof -itcp:4000external toolslsofnetwork port inspection